dofile( "paths.lua" )

solution "stomped-reality"
	-- basic config
	configurations { "Debug", "Release", "Development" }	
	
	targetdir "./build"

	if ( os.is("windows") ) then
		defines { "WIN32" }
		excludes { "**/xgl_*", "**/linux_*", "**/Linux*" }
		if ( _ACTION == "codelite" or _ACTION == "gmake") then
			defines { "GCC_COMPILER" }
			buildoptions { "-std=c++0x" }
		end
	end

	if ( os.is("linux") ) then
		defines { "LINUX" }
		excludes { "**/wgl_*", "**/win_*", "**/Win*", "**/WGL*" }
		buildoptions { "-std=c++0x" }
	end

	
	includedirs { STB_IMAGE, UNIT_TEST .."/src", JSON_CPP .. "/include", GWEN .. "/include", "./ext"  }
	location "build"
	language "C++"
	flags { "StaticRuntime" }
	-- configurations
	configuration "Debug"
		defines { "DEBUG" }
		flags { "Symbols" }
		targetdir "build/Debug"
		libdirs { "./build/Debug" }
	configuration "Release"
		defines { "NDEBUG" }
		flags { "Optimize" }
		targetdir "build/Release"			
		libdirs { "./build/Release" }
	configuration "Development"
		flags { "Optimize" }
		targetdir "build/Development"
		libdirs { "/Release", "./build/Development" }
	
	include "./StompedReality"
	include "./GameTest"
	include "./StompedRealityUnitTest"
if (_ACTION == "vs2010") then
	include "./StomperLib"
	include "./PatchStomper"
	include "./ObjectStomper"
end

dofile("ext_libs.lua")